package com.wdc.principles.reversalOfDependence.before;

public class ComputerDemo {
    public static void main(String[] args) {

        //创建计算机组件
        InterCpu interCpu = new InterCpu();
        XiJieHardDisk xiJieHardDisk = new XiJieHardDisk();
        KingstonMemory kingstonMemory = new KingstonMemory();


        Computer computer = new Computer();
        computer.setHardDisk(xiJieHardDisk);
        computer.setInterCpu(interCpu);
        computer.setKingstonMemory(kingstonMemory);

        computer.run();

    }
}
